home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dv_doswi.arc / DOSWINDO.DOC < prev    next >
Text File  |  1990-01-09  |  5KB  |  102 lines

  1.                    SYSOP's DOS Window Scripts
  2.  
  3. I thought I might post my DOS (128K) window script file to show 
  4. others what may be done by combining DESQview scripts with some 
  5. of the standard DOS functions available to all in a DOS window.
  6.  
  7. This was spurred on by a note from a user on the BBS concerning 
  8. trouble using a TSR that does cut and paste (to the printer) 
  9. operations.  While these TSRs may have additional features, I 
  10. normally use standard DESQview features with the help of some 
  11. scripts in my DOS window to transfer information marked by the 
  12. DESQview Mark function to the printer or a file of my choice.
  13.  
  14. In the process of setting up the file for the board, I also added 
  15. a couple other functions that came to mind for taking simple 
  16. notes, sending a form feed to the printer.  The use of the Alt 
  17. keys are my taste, you may wish to define them to other 
  18. keys.These macros may not do exactly what you want or need, but 
  19. hopefully they will serve as inspiration to set up your own.  
  20. There are MANY other possibilities.
  21.  
  22. I run this in a 128K window, but if you didn't need to use the 
  23. SORT or READ (MORE) macros, you could probably get by in a 32K 
  24. window.  Note, that if you do use the SORT and MORE utilities, 
  25. you will need to have a PATH set to these DOS files.
  26.  
  27. If you want to see what this looks like, just copy the file 
  28. D1-SCRIP.DVS into your DESQview directory and open up the DOS 
  29. (128K) window.
  30.  
  31. The Macros:
  32.  
  33. Alt-F1       - Brings up the display scripts menu.  If you don't 
  34.                mind stepping on the DOS command line editor funtion
  35.                for repeating one key at a time from the last 
  36.                command (also available using the right arror), 
  37.                you can redefine this key to F1 (easier to hit and 
  38.                more intuitive).
  39.  
  40. Alt-P        - Sends marked block to the printer.  If your 
  41.                printer is not set up to print well from column 1, 
  42.                you can modify the macro to copy a file containing 
  43.                the proper control codes to set the margin, then 
  44.                transfer the marked block and then reset the 
  45.                printer.
  46.  
  47. Alt-E        - Sends a printer EJECT.  It is conceivable to me 
  48.                that some versions of DOS may not support the use 
  49.                of ECHO used here (DOS 3.3).  If this doesn't work 
  50.                for you, use the COPY CON: method used in the 
  51.                transfer to printer macro to send a ^L (actually 
  52.                hit the Control-L), to the printer.
  53.  
  54. Alt-F        - Puts marked info into a file name of your own 
  55.                choosing.  At the pause, just type in the filename 
  56.                with path (if needed) and hit the Enter key.  This 
  57.                will be a strait ASCII file that may be imported 
  58.                into programs that import ASCII.
  59.  
  60. Alt-N        - A VERY limited note taker.  Takes ONE line of 
  61.                input and appends it to a file called NOTES.TXT.  
  62.                You may need to modify the directory used to fit 
  63.                your situation.  Obviously, you probably have 
  64.                something better than this, it is included only to 
  65.                show that if your needs are simple, sometimes you 
  66.                don't have to even buy a new program - make 
  67.                something yourself.
  68.  
  69. Alt-R       -  Reads the NOTE.TXT file using the DOS MORE filter.  
  70.                A better choice than MORE might be the shareware 
  71.                product LIST, but I wanted to keep these macros 
  72.                strictly DOS and DESQview.
  73.  
  74. Alt-S       -  Uses the DOS SORT filter to sort NOTE.TXT.  Again, 
  75.                very limited, but if you start your line with some 
  76.                sortable field, the file will be sorted on that 
  77.                field (as well as the rest of the line).
  78.  
  79. {255}       -  Autostart script that clears the screen and 
  80.                displays REM message.  On my real system, I use 
  81.                this script to load the shareware program 
  82.                DOSEDIT.COM.  Could be made to do other setup 
  83.                procedures as well.  Note the use of the high 
  84.                ASCII code 255 for the script.  You get this by 
  85.                holding down the Alt key and typing 255 on the 
  86.                keypad.  Using a high ASCII code for a autostart 
  87.                script leaves all the normal keys available for 
  88.                other use.
  89.  
  90. {222}          Kill Scripts:  As useful as macros can be, sometimes 
  91.                they get in your way in a DOS window.  For instance, 
  92.                sometimes you may want to run a small utility in the 
  93.                DOS window and if that utility uses some of the keys 
  94.                defined above, you find your scripts getting in the 
  95.                way.  Activate Kill Scripts by holding down the Alt 
  96.                key and typing 222 on the numeric keypad.  This 
  97.                loads in a script file called NULL.DVS which has no 
  98.                macros at all other than its own {222} macro which 
  99.                will re-load the D1-SCRIP.DVS file.
  100.  
  101. S. Young - SYSOP DESQview BBS.
  102.